package com.htjc.integral.exchange.utils;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;


import com.htjc.integral.exchange.mapper.BpBuyRedPacketForVipMapper;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "exchangeLogger")
public class SgccMallUtil {
	
	private static SgccMallUtil uniqueInstance = new SgccMallUtil();;

	@Autowired
	private BpBuyRedPacketForVipMapper bpBuyRedPacketForVipMapper;

	private SgccMallUtil() {
	}

	public static SgccMallUtil getInstance() {

		return uniqueInstance;

	}

	public String getConfValue(String key) {
		String userKey = null;
		if (StringUtils.isNotBlank(key)) {
			userKey = bpBuyRedPacketForVipMapper.selectParasByCode(key);
		}
		return userKey;

	}

}
